Transition to GitHub App auth, remove azuresdk-github-pat usage#46709
Open
scbedd wants to merge 1 commit into
Open
Transition to GitHub App auth, remove azuresdk-github-pat usage#46709scbedd wants to merge 1 commit into
scbedd wants to merge 1 commit into
Conversation
Related to Azure/azure-sdk-tools#9842 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Transitions pipelines from the azuresdk-github-pat PAT to GitHub App authentication via the shared login-to-github.yml step, exposing GH_TOKEN, and clears AuthToken to let downstream templates use the same login flow.
Changes:
- Replace
$(azuresdk-github-pat)references with$(GH_TOKEN)and add thelogin-to-github.ymltemplate step where needed. - Set
AuthToken: ''on template invocations so they fall back to the GitHub App-provided token.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/release_helper/release_helper.yml | Add login step and switch bot token to GH_TOKEN. |
| eng/pipelines/tsp-spec-sync.yml | Clear AuthToken on template invocation. |
| eng/pipelines/trigger-ml-sample-pipeline.yml | Clear AuthToken on template invocation. |
| eng/pipelines/templates/steps/verify-autorest.yml | Clear AuthToken on template invocation. |
| eng/pipelines/templates/steps/build-package-artifacts.yml | Add login step; switch sparse-checkout token to GH_TOKEN. |
| eng/pipelines/templates/stages/python-analyze-weekly.yml | Add login step; switch env GH_TOKEN to pipeline var. |
| eng/pipelines/templates/stages/archetype-python-release.yml | Clear AuthToken on two template invocations. |
| eng/pipelines/templates/jobs/update_pr.yml | Add login step; switch env GH_TOKEN to pipeline var. |
| eng/pipelines/templates/jobs/live.tests.yml | Add login step; switch sparse-checkout token to GH_TOKEN. |
| eng/pipelines/templates/jobs/ci.tests.yml | Add login step; switch sparse-checkout token to GH_TOKEN. |
| eng/pipelines/prepare-pipelines.yml | Clear AuthToken on template invocation. |
| eng/pipelines/docindex.yml | Clear AuthToken on two template invocations. |
| eng/pipelines/conda-update-pipeline.yml | Clear AuthToken on template invocation. |
| eng/pipelines/aggregate-reports.yml | Add login step; switch env GH_TOKEN to pipeline var. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to Azure/azure-sdk-tools#9842